package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * <desc>
 *    电梯通行记录实体类
 * </desc>
 *
 * @createDate 2017-09-30
 */
@ItlTables("device_elevator_record")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DeviceElevatorRecordPO extends BasePO implements Serializable {


    @ItlField("user_id")
    private String userId;          //用户ID

    @ItlField("device_unique")
    private String deviceUnique;        //设备序列号

    @ItlField("project_id")
    private String projectId;        //项目编号

    @ItlField("open_type")
    private Integer openType;           //通行方式,1-点击，2-自动感应，3-摇一摇

    @ItlField("pass_time")
    private Date passTime;              //通行时间

    @ItlField("upload_time")
    private Date uploadTime;            //上传时间，将通行记录同步给一卡通的时间

    @ItlField("open_count")
    private Integer openCount;          //一次开门请求的次数，蓝牙开放统计数据

    @ItlField("face_pic_url")
    private String facePicUrl;          //通行图片地址

    @ItlField("timescount")
    private Integer timescount;         //是否计次：1是 0否

    @ItlField("last_pass_count")
    private Integer lastPassCount;      //剩余通行次数

    @ItlField("qrcode_source")
    private Integer qrcodeSource;               //二维码来源

    @ItlField("online")
    private Integer online;                 //SDK类型 1在线 2离线

    @ItlField("room_detail")
    private String roomDetail;                  //房间信息 楼栋单元房间相拼接

    @ItlField("source")
    private Integer source;                     //通行来源

    @ItlField("from_floor")
    private String fromFloor; //出发楼层

    @ItlField("to_floor")
    private String toFloor;   //目标楼层
}